# -*- coding:utf-8 -*-

from com.mat.rpa.utils.globalConstants import GlobalConstants
from com.mat.rpa.views.workWindow.leftPanel.directiveTree import treeItem
from . import lockingAndUnlockingScreenOperationConstants

class LockingAndUnlockingOperationSubDirectiveTree(treeItem.TreeItemWithID):
    def __init__(self, parent):
        super(LockingAndUnlockingOperationSubDirectiveTree, self).__init__(parent)
        self.createLockingAndUnlockingOperationTreeNode()

    def createLockingAndUnlockingOperationTreeNode(self):
        self.nodeType = GlobalConstants.treeBranchType
        self.directiveType = "lockingAndUnlockingOperations"
        self.setText(0,"锁屏/解锁")
        self.createTreeNode(GlobalConstants.treeLeafType,
                            self, lockingAndUnlockingScreenOperationConstants.LockingAndUnlockingScreenOperationConstants.lockingScreenDirective, "屏幕锁屏")
        self.createTreeNode(GlobalConstants.treeLeafType,
                            self, lockingAndUnlockingScreenOperationConstants.LockingAndUnlockingScreenOperationConstants.unlockingScreenDirective, "屏幕解锁")